/*
 * app_debug_ql.h
 *
 *  Created on: 2021年4月14日
 *      Author: clay
 */

#ifndef SRC_INCLUDE_APP_DEBUG_QL_H_
#define SRC_INCLUDE_APP_DEBUG_QL_H_

#include "com_include.h"
#include "log.h"

#ifdef __cplusplus
extern "C"{
#endif

#define TITLE  "[QLS ]"
#define _DEBUG_    0     //临时显示

#if(_DEBUG_ == 1)
#define DEBUG_SHOW(x,...) log_debug_new(TITLE,"[MYSHOW]"#x"\n", ##__VA_ARGS__)
#else
#define DEBUG_SHOW(x,...)
#endif


#define _DEBUG_NW_   0
#if(_DEBUG_NW_ == 1)
#define debug_nw(x,...) log_debug_new(TITLE,"[P104_NW]"#x"\n", ##__VA_ARGS__)
#else
#define debug_nw(x,...)
#endif

#define _DEBUG_104_   1
#if(_DEBUG_104_ == 1)
#define debug_104(x,...) log_debug_new(TITLE,"[QL]"#x"\n", ##__VA_ARGS__)  //Task_Client_Send任务初始化
#define debug_ql(x,...) log_debug_new(TITLE,"[QL]"#x"\n", ##__VA_ARGS__)  //Task_Client_Send任务初始化
#define debug_104_1(x,...)
#else
//#define debug_104_1(x,...) log_debug_new(TITLE,"[qlsh]"#x"\n", ##__VA_ARGS__)//Task_Client_Send任务初始化
#define debug_104(x,...)
#define debug_ql(x,...)
#define debug_104_1(x,...)
#endif

#define _DEBUG_MDATA_     0
#if(_DEBUG_MDATA_ == 1)
#define debug_mdata(x,...) log_debug_new(TITLE,"[MDATA]"#x"\n", ##__VA_ARGS__)  //111正确多帧数据
#define debug_mdata1(x,...) log_debug_new(TITLE,"[MDATA]"#x"\n", ##__VA_ARGS__)  //打印重
#else
#define debug_mdata1(x,...)// log_debug_new(TITLE,"[MDATA]"#x"\n", ##__VA_ARGS__)  //打印重
#define debug_mdata(x,...)
#endif


#ifdef __cplusplus
}
#endif
#endif /* SRC_INCLUDE_APP_DEBUG_QL_H_ */
